<?php
/*
 * Created on Apr 3, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<div id="center-column">
<div class="path_bar"><?php echo validation_errors()?></div>
  <div class="table">
		<form action="<?php echo $this->base_url?>admin/category/save" method="post" enctype="multipart/form-data">
		<table class="listing form" cellpadding="0" cellspacing="0">
			<tr>
				<th class="full" colspan="2"><?php echo lang('category_info')?></th>
			</tr>
			<tr class="bg">
				<td class="full" colspan="2">
				<?php echo $error_message?>
				</td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('parent_category')?></strong></td>
				<td class="last"><?php echo $parent_category?></td>
			</tr>
			<tr>
				<td class="first" width="172"><strong><?php echo lang('vi_name')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtViName" value="<?php echo $txtViName?>" /><span class="red"> *</span></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('en_name')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtEnName" value="<?php echo $txtViName?>" /><span class="red"> *</span></td>
			</tr>
			<tr>
				<td class="first"><strong><?php echo lang('vi_description')?></strong></td>
				<td class="last"><textarea type="text" class="text" name="txtViDescription" cols="60" rows="3" /><?php echo $txtViDescription?></textarea></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('en_description')?></strong></td>
				<td class="last"><textarea type="text" class="text" name="txtEnDescription" cols="60" rows="3" /><?php echo $txtEnDescription?></textarea></td>
			</tr>
			<tr>
				<td class="first"><strong><?php echo lang('icon')?></strong></td>
				<td class="last"><input type="file" name="txtFile"></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('friendly_url')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtFriendlyURL" value="<?php echo $txtFriendlyURL?>" /></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('meta_title')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtMetaTitle" value="<?php echo $txtMetaTitle?>" /></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('meta_description')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtMetaDescription" value="<?php echo $txtMetaDescription?>" /></td>
			</tr>
			<tr class="bg">
				<td class="first"><strong><?php echo lang('meta_keywords')?></strong></td>
				<td class="last"><input type="text" class="text" name="txtMetaKeywords" value="<?php echo $txtMetaKeywords?>" /></td>
			</tr>
			<tr class="bg">
				<td class="first"></td>
				<td class="last">
				<input type="hidden" name="txtID" id="txtID" value="{$txtID}">
				<input type="hidden" name="txtCode" id="txtCode" value="{$code}"> 
				<input type="checkbox" <?php echo $cbActive ?> name="cbActive"> <?php echo lang('active')?>
				<br>
				<span class="red"><?php echo lang('the_item_are_mark_are_required')?></span>
				<br><br>
				<input type="submit" value="<?php echo lang('save')?>" name="btSave"> 
				<input type="reset" value="<?php echo lang('clear')?>" name="btClear"></td>
			</tr>
		</table>
		</form>
  </div>
</div>